package com.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.Orders;
import com.entity.view.OrdersView;
import com.entity.vo.OrdersVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface OrdersDao extends BaseMapper<Orders> {
    List<OrdersVO> selectListVO(@Param("ew") Wrapper<Orders> wrapper);


    OrdersVO selectVO(@Param("ew") Wrapper<Orders> wrapper);

    List<OrdersView> selectListView(@Param("ew") Wrapper<Orders> wrapper);

    List<OrdersView> selectListView(Pagination page, @Param("ew") Wrapper<Orders> wrapper);

    OrdersView selectView(@Param("ew") Wrapper<Orders> wrapper);


    List<Map<String, Object>> selectValue(@Param("params") Map<String, Object> params, @Param("ew") Wrapper<Orders> wrapper);

    List<Map<String, Object>> selectTimeStatValue(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<Orders> wrapper);

    List<Map<String, Object>> selectGroup(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<Orders> wrapper);

}
